package com.aqie.demo.enter;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * @Author aqie
 * @Date 2021/12/9 15:38
 * @desc 超脑拍摄获取信息
 */
@Data
@ToString
public class HkEnter {
    private String tenantId = "528663";

    private Long id;
    /**
     * 用户唯一号
     */
    private String code;

    private String name;

    /**
     * 宿舍楼编号
     */
    private String buildingNum;

    /**
     * 进出状态 1-进 2-出
     */
    private byte status;

    private String clientIp;

    private String serverIp;

    /**
     * 对比状态 1-成功 2-失败
     */
    private byte contrastStatus;

    /*@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;*/

    @JsonSerialize(using = ToStringSerializer.class)
    private Long createTime;

    public static void main(String[] args) {
        String name = "aqie_110";
        String[] s = name.split("_");
        System.out.println(s.length);
    }
}
